package conchmusic.conchmusicclient.pojo;

import android.media.MediaPlayer;
import android.os.Binder;

/**
 * Created by sbml1 on 2017/4/6.
 */
public class Progressor extends Binder{
    private MediaPlayer mediaPlayer;

    public Progressor(MediaPlayer mediaPlayer) {
        this.mediaPlayer = mediaPlayer;
    }

    public int getProgress(){
        return mediaPlayer.getCurrentPosition();
    }

    public int getDuration(){
        return mediaPlayer.getDuration();
    }
}
